<?php
include '../connect/common_start.php';
if(isset($_REQUEST['idPost']))
{
	$idPost=$_REQUEST['idPost'];
	//echo $idPost;
	$result=mysql_query("SELECT * FROM product p WHERE (p.id_post='$idPost' AND p.status='1')");
	$row=array();
	while ($r=mysql_fetch_assoc($result)) {
		$row[] = $r;
	}
	echo json_encode($row);
}
include '../connect/common_end.php';
?>